import { createApp } from 'vue'
import ElementPlus from 'element-plus'

import 'element-plus/dist/index.css'
// import 'element-ui/lib/theme-chalk/index.css'

import Vant from 'vant'
import 'vant/lib/index.css'
import { Search } from 'vant';
import { Icon } from 'vant';
import { CountDown } from 'vant';
import TopSearch from '@/components/top-search/index.vue'


import 'element-plus/dist/index.css'


import './style.css'
import App from './App.vue'
import router from './router/index'

// rem适配
import 'amfe-flexible'
import pinia from './store'

const app = createApp(App)



// 注册顶部导航全局组件
app.component('TopSearch', TopSearch)
app.use(Vant)
app.use(CountDown);
app.use(Icon);
app.use(Search);
app.use(router)
app.use(ElementPlus)
app.use(Vant)
app.use(router)
app.use(pinia)

// import top from '@/components/top/index.vue'
// app.component('top', top)

app.mount('#app')
